<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title> MAGNETO Admin Skin</title>
	[#include "/commons/defaultHead.ftl"/]
	
	<script type="text/javascript" src="${jsDir}/budgetcalc/newproject.js"></script>
	<style>
		.ui-datepicker-calendar {
			display: ;
		}
	</style>
	
</head>
<body>
	
<div id="content">
<div class="column full">
		<div class="box width100 fl"> 
		<h2 class="box-header">项目管理(单位：元)</h2>
		<div class="box-content">
			<div class="search-box">
				<form id="searchForm">
				<label for="searchProjectName">项目：</label>
				<input id="searchProjectName" name="name" class="form-field small" style="width: 120px" type="text" value="">
				&nbsp;&nbsp;&nbsp;&nbsp;
				<label for="searchProjectType">类型：</label>
				<select id="searchProjectType" name="type" style="width: 100px">
					<option value="">-请选择-</option>
					<option value="1">预算</option>
					<option value="2">核算</option>
				</select>
				&nbsp;&nbsp;&nbsp;&nbsp;
				<label for="startTime"> 日期: </label>
				<input id="startTime" name="startTime" class="form-field datepicker" type="text"/>
				<label for="endTiem"> 至: </label>
				<input id="endTiem" name="endTiem" class="form-field datepicker" type="text"/>
				
				<div class="search-box-button">
					<a id="searchButton" class="button themed"><span class="icon_text pack_white _10"></span>搜索</a>
					<a id="clearButton" class="button red"><span class="icon_text pack_white _5"></span>清空</a>
				</div>
				</form>
				 
			</div>
			
			<div class="toolbar">
			<a id="add" class="button white"><span class="icon_text addnew"></span>新增项目</a>
			<a id="update" class="button white"><span class="icon_text edit"></span>项目预(核)算</a>
			<a id="delete" class="button white"><span class="icon_text cancel"></span>删除项目</a>
			</div>
			
			<table id="dataGird" style="display: none"></table>
		</div>
		</div>
		
		<div class="box-content">
		<div id="projectDialog" class="dialog" title="新增项目(单位：元)">
				<form id="projectForm" method="get">
					<table id="projectTable" class="width100" style="overflow:auto">
					<tr>
					<td style="width:15%" valign="top"><label class="form-label"> 项目名称： </label></td>
					<td colspan="3" style="width:85%">
						<textarea id="name" class="form-field" style="width:92%;height: 50px;" name="name" cols="" rows=""></textarea>
					</td>
					</tr>
					
					<tr>
					<td><label class="form-label"> 项目编号： </label></td>
				 	<td><input id="code" name="code" class="form-field" maxlength="20"/></td>
				 	<td><label class="form-label"> 承接部门： </label></td>
					<td><input id="deptName" name="deptName" class="form-field" maxlength="20"/></td>
					</tr>
					
					<tr>
					<td><label class="form-label"> 工资奖金系数： </label></td>
				 	<td><input id="wageCoefficient" maxlength="3" name="wageCoefficient" class="form-field currency-type" maxlength="20"/></td>
					<td><label class="form-label"> 合同额： </label></td>
					<td><input id="contractValue"  name="contractValue" class="form-field currency-type" maxlength="20"/>(元)</td>
					</tr>
					</table>
					
					<hr/>
					
					<table id="inputTable" class="width100" cellspacing="10" style="overflow:auto;">
					<tr id="typeTr">
					<td style="width:15%"><label class="form-label"> 控制类型： </label></td>
					<td >
						<div id="type" class="radiocheck">
						<input id="type1" type="radio" value="1" name="type"/><label class="typeLabel" data-type="1" for="type1">预算</label>
						<input id="type2" type="radio" value="2" name="type"/><label class="typeLabel" data-type="2" for="type2">核算</label>
						</div>
					</td>
					<td colspan="2">
						<span id="msgSPAN" class="message information" ><strong>提示 </strong>统计期为空时,为项目总预(核)算.</span>
					</td>
					</tr>
					<tr id="gmtRefundTr">
					<td><label class="form-label"> 统计期： </label></td>
				 	<td colspan='3'>
				 	<input id="gmtRefund" name="gmtRefund" class="form-field datepicker" readonly="readonly">
				 	</td>
					</tr>
					<tr>
					<td colspan='4' style="width:100%"><hr/></td>
					</tr>
					[#--
						<tr>
						<td><label class="form-label"> 外业地勘： </label></td>
					 	<td><input id="geosurveyCost" name="geosurveyCost" class="form-field currency-type" maxlength="20"/>(元)</td>
					 	<td><label class="form-label"> 外业测量： </label></td>
						<td><input id="surveyCost" name="surveyCost" class="form-field currency-type" maxlength="16"/>(元)</td>
						</tr>
					 --]
					<tr>
					<td>&nbsp;</td>
					<tr>
					<tr>
					<td style="width:15%" valign="top" >
						<label class="form-label"> 外业地勘： </label>
					</td>		
					<td colspan='3' >
						<ul id="geosurveyCostField" >
							<li id="geosurveyCostLI1" style="display:">
								<select name="geosurveyCost" class="" title="外业地勘">
									<option name="所有" value="0">所有</option>
									[#list otherdictLst as dict]
									<option name="${dict.name}" value="${dict.id}">${dict.name}</option>
									[/#list]
								</select>
								<input size="15" class="form-field currency-type" style="margin: 0 0 2px;" name="geosurveyCost"/>(元)
								<a name="delOther" style="display:none; " class="button white" ><span class="icon_text cancel"></span>删除</a>
							</li>
							<li id="addgeosurveyCostLi" style="padding-top: 5px;">
							<a id="addgeosurveyCost" class="button white" style="margin-left:20px;"> <span class="icon_text addnew"></span>添加</a>
							</li>
						</ul>	
					</td>
					<tr>
					<td>&nbsp;</td>
					<tr>
					<tr>
					<td style="width:15%" valign="top" >
						<label class="form-label"> 外业测量： </label>
					</td>		
					<td colspan='3' >
						<ul id="surveyCostField" >
							<li id="surveyCostLI1" style="display:">
								<select name="surveyCost" class="" title="外业地勘">
									<option name="所有" value="0">所有</option>
									[#list otherdictLst as dict]
									<option name="${dict.name}" value="${dict.id}">${dict.name}</option>
									[/#list]
								</select>
								<input size="15" class="form-field currency-type" style="margin: 0 0 2px;" name="surveyCost"/>(元)
								<a name="delOther" style="display:none; " class="button white" ><span class="icon_text cancel"></span>删除</a>
							</li>
							<li id="addsurveyCostLi" style="padding-top: 5px;">
							<a id="addsurveyCost" class="button white" style="margin-left:20px;"> <span class="icon_text addnew"></span>添加</a>
							</li>
						</ul>	
					</td>
					</tr>
					
					<tr>
					<td>&nbsp;</td>
					<tr>
					<tr>
					<td style="width:15%" valign="top" >
						<label class="form-label"> 外业其他： </label>
					</td>		
					<td  colspan='3'>
						<ul id="otherCostField" >
							<li id="otherCostLI1" style="display:">
								<select name="otherCost" class="" title="其他费用">
									<option name="" value=""></option>
									[#list otherdictLst as dict]
									<option name="${dict.name}" value="${dict.id}">${dict.name}</option>
									[/#list]
								</select>
								<input size="15" class="form-field currency-type" style="margin: 0 0 2px;" name="otherCost"/>(元)
								<a name="delOther" style="display:none; " class="button white" ><span class="icon_text cancel"></span>删除</a>
							</li>
							<li id="addotherCostLi" style="padding-top: 5px;">
							<a id="addotherCost" class="button white" style="margin-left:20px;"> <span class="icon_text addnew"></span>添加</a>
							</li>
						</ul>	
					</td>
					</tr>
					
					<tr>
					<td>&nbsp;</td>
					<tr>
					<tr>
					<td style="width:15%" valign="top" >
						<label class="form-label"> 内业费用： </label>
					</td>		
					<td  colspan='3'>
						<ul id="designCostField" >
							<li id="designCostLI1" style="display:">
								<select name="designCost" class="" title="外业地勘">
									<option name="所有" value="0">所有</option>
									[#list otherdictLst as dict]
									<option name="${dict.name}" value="${dict.id}">${dict.name}</option>
									[/#list]
								</select>
								<input size="15" class="form-field currency-type" style="margin: 0 0 2px;" name="designCost"/>(元)
								<a name="delOther" style="display:none; " class="button white" ><span class="icon_text cancel"></span>删除</a>
							</li>
							<li id="adddesignCostLi" style="padding-top: 5px;">
							<a id="adddesignCost" class="button white" style="margin-left:20px;"> <span class="icon_text addnew"></span>添加</a>
							</li>
						</ul>	
					</td>
					</tr>
					<tr>
					<td>&nbsp;</td>
					<tr>
					[#--
						<tr>
						<td><label class="form-label"> 内业费用： </label></td>
					 	<td><input id="designCost" name="designCost" class="form-field currency-type" maxlength="20"/>(元)</td>
					 	<td><label class="form-label"> 外业承包： </label></td>
						<td><input id="outsideCost" name="outsideCost" class="form-field currency-type" maxlength="16"/>(元)</td>
						</tr>
					--]
					<tr>
					 	<td style="width:15%"><label class="form-label"> 外业承包： </label></td>
						<td colspan='3'><input id="outsideCost" name="outsideCost" class="form-field currency-type" maxlength="16"/>(元)</td
						</tr>
					<tr>
					<td><label class="form-label"> 会务费用： </label></td>
				 	<td><input id="conferenceCost" name="conferenceCost" class="form-field currency-type" maxlength="20"/>(元)</td>
				 	<td><label class="form-label"> 分院产值： </label></td>
					<td><input style="width:50%" id="branchValue" name="branchValue" class="form-field currency-type" maxlength="9"/>(元)
						<a name="calc_branch_value_href" id="calc_branch_value_href" style="" class="button white" >计算</a>
					</td>
					</tr>
					
					<tr>
					<td><label class="form-label"> 已完成： </label></td>
				 	<td><input id="completedRate" maxlength="3" name="completedRate" class="form-field currency-type"/>%</td>
				 	<td><label class="form-label"> 预(核)算完成额： </label></td>
					<td><input id="budgetcalcCplValue" name="budgetcalcCplValue" readonly="readonly" class="form-field currency-type" maxlength="20"/>(元)</td>
					</tr>
					
					<tr>
					
					</tr>
					
					</table>
					<hr/>
					<label class="form-label"> <font color="red">合计</font>：
											   <span id="totalCurrencySPAN"></span>
											   <font color="green">(元)</font> 
					</label>
					<br/>
					<div class="fr">
						<button id="resetBtn" type="button" class="button red" />重置</button>
						<button id="submitBtn" type="button" class="button themed" />确认提交</button>
						<button id="cancelBtn" type="button" class="button themed" />取消</button>
					</div>
				</form>
				
				</div>
				
				<div id="dialogConfirm" title="删除用户">
					<p><span  class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0; font-size:14px"></span></p>
				</div>
		</div>
		
		<div class="clear"></div>
</div> 
</div> 
</body>
</html>